
//
//  HXViewController.m
//  feicuiwan
//
//  Created by ZhengYing on 2017/7/6.
//  Copyright © 2017年 zy. All rights reserved.
//

#import "HXViewController.h"
#import "MYTabViewController.h"
@interface HXViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end

@implementation HXViewController
- (IBAction)hxPress:(id)sender {
    [self.imageView setImage:[UIImage imageNamed:@"hx1"]];
    for (UIButton *btn in self.view.subviews) {
        
        if (btn.tag>100&&btn.tag<200) {
            btn.hidden = NO;
        }else{
            if (btn.tag>100) {
                btn.hidden = YES;

            }
            
        }
    }
}
- (IBAction)bytPress:(id)sender {
     [self.imageView setImage:[UIImage imageNamed:@"hx2"]];
    for (UIButton *btn in self.view.subviews) {
        
        if (btn.tag>200&&btn.tag<300) {
            btn.hidden = NO;
        }else{
            if (btn.tag>100) {
                btn.hidden = YES;
                
            }
        }
    }
    
}
- (IBAction)nytPress:(id)sender {
     [self.imageView setImage:[UIImage imageNamed:@"hx3"]];
    for (UIButton *btn in self.view.subviews) {
        
        if (btn.tag>300&&btn.tag<400) {
            btn.hidden = NO;
        }else{
            if (btn.tag>100) {
                btn.hidden = YES;
                
            }
        }
    }
}

- (void)viewDidLoad {
    [super viewDidLoad];
    for (UIButton *btn in self.view.subviews) {
        
        if (btn.tag>100&&btn.tag<200) {
            btn.hidden = NO;
        }else{
            if (btn.tag>100) {
                btn.hidden = YES;
                
            }
            
        }
    }

    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [(MYTabViewController *)self.tabBarController showTabbar];

}

#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    [(MYTabViewController *)self.tabBarController hiddenTibbar];

    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}


@end
